<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .login_page .login_box {
            border-top: 1px solid blue;
        }

        .login_page .login_box .center_box {
            border: 2px solid black;
            width: 1000px;
            margin: 0 auto;
            position: relative;
            height: 600px;
        }

        .login_page .login_form {
            border: 2px solid blue;
            width: 400px;
            position: absolute;
            top: 50%;
            left: 50%;

            border-radius: 6px;
            transition: all 0.8s;
            transform: perspective(600px) translate(-50%, -50%);
        }

        /*.login_page .login_form.rotate {*/
        /*    transform: rotateY(-180deg);*/
        /*}*/

        .login_page .tabs {
            height: 60px;
            line-height: 60px;
            background: #fff;
            border-radius: 8px 8px 0 0;
            border-bottom: 1px solid #e6e6e6;
        }


        .login_page .tabs .tab {
            font-size: 18px;
            width: 50%;
            text-align: center;
            cursor: pointer;
            line-height: 60px;
        }

        .login_page .tabs .active {
            border-bottom: 2px solid #345dc2;
        }


        .fl {
            float: left;
        }
    </style>
</head>
<body>
<main class="login_page">
    <div class="login_box">
        <div class="center_box">
            <div class="login_form">
                <div class="tabs">
                    <div class="fl tab active">
                        <span>登录</span>
                    </div>
                    <div class="fl tab">
                        <span>注册</span>
                    </div>
                </div>

                <!--登录-->
                <div class="form_body">
                    <label>
                        <input type="text" placeholder="请输入用户名" autocomplete="off">
                    </label>
                    <label>
                        <input type="password" placeholder="请输入密码" autocomplete="off">
                    </label>
                    <input type="submit" value="登录" class="btn"/>
                </div>

                <!--注册-->
                <div class="form_body r180">
                    <form>
                        <input type="text" placeholder="请输入用户名" autocomplete="on">
                        <input type="password"  placeholder="6-30位密码，可用数字/字母/符号组合" autocomplete="on">
                        <input type="password" v-model="registerData.repPassword" placeholder="确认密码">
                        <div class="error_msg">{{ regMessage }}</div>
                        <div class="agree">
                            <input type="checkbox" id="tonyi" v-model="registerData.check">
                            <label for="tonyi">我已经阅读并同意</label><a href="javascript:void(0);" @click="xieyi = true">《用户协议》</a>
                        </div>
                        <input type="submit" v-if="subState" disabled="disabled" value="提交中···" class="btn">
                        <input type="submit" v-else value="注册" class="btn">
                    </form>
                </div>

            </div>
        </div>
    </div>
</main>


<script>
    let currentTab = 1;  // 1:登录  2：注册
    let rotate = false;
</script>
</body>
</html>